projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f69f3ee
)
(CHAR_LEN): Moved here from dispextern.h.
author
Gerd Moellmann
<gerd@gnu.org>
Wed, 21 Jul 1999 21:43:52 +0000
(21:43 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Wed, 21 Jul 1999 21:43:52 +0000
(21:43 +0000)
src/charset.h
patch
|
blob
|
history
diff --git
a/src/charset.h
b/src/charset.h
index d385e05bbb68e10834531f1fb444a61f3a00f0ed..2cc0f0ce0171e854f595b61879f78466072fbdd0 100644
(file)
--- a/
src/charset.h
+++ b/
src/charset.h
@@
-839,4
+839,12
@@
extern Lisp_Object Vauto_fill_chars;
while (i--) *from_p++ = *to_p++; \
} while (0)
+/* Length of C in bytes. */
+
+#define CHAR_LEN(C) \
+ (CHAR_CHARSET ((C)) == CHARSET_COMPOSITION \
+ ? cmpchar_table[COMPOSITE_CHAR_ID ((C))]->len \
+ : CHARSET_BYTES (CHAR_CHARSET ((C))))
+
+
#endif /* _CHARSET_H */